import request from '@/utils/request';

//轮播图分页查询
export function queryBannerList(data) {
	return request({
		method: 'get',
		url: '/sysBanner/query',
		params: data,
	})
}

//新增轮播图
export function addBanner(data) {
	return request({
		method: 'post',
		url: '/sysBanner/add',
		data,
	})
}

//修改轮播图
export function updateBanner(data) {
	return request({
		method: 'post',
		url: '/sysBanner/update',
		data,
	})
}

//删除轮播图
export function deleteBanner(id) {
	return request({
		method: 'get',
		url: '/sysBanner/delete/' + id
	})
}

//轮播图详情
export function queryBanner(id) {
	return request({
		method: 'get',
		url: '/sysBanner/query/' + id
	})
}